{include file="admin/public/header" /}
<form role="form" method="post" action="{:url('ajax/setting/saveconfig')}" class ="cmzForm">
<style type="text/css">
	.tab-pane{padding-top: 20px;padding: 20px;}
</style>
	<div class="row">
            <div class="col-sm-12">
            <div class="tabs-container">
                    <div style="clear:both;height:20px"></div>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
			                 <div class="ibox float-e-margins">
			                        <div class="row">
			                            <div class="col-sm-12 b-r">
			                               <div class="ibox-title">
						                        <a class="label label-primary pull-right tip" id="admin" msg="网站的站点功能配置信息">站点功能<i class="fa fa-question"></i></a>
						                        <h5>站点功能</h5>
						                    </div>
						                    <div class="ibox-content">
						                        <table class="table table-striped">
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">网站公告:</span>
										                            <div class="col-sm-5 col-xs-8">
										                                <textarea class="form-control textarea" name="site_announce"  >{$config.site_announce}</textarea>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">开启 Rewrite 伪静态':</span>
										                            <div class="col-sm-6 col-xs-8">
										                                <div class="btn-group mod-btn">
										                                 <div class="checkbox i-checks checkbox-inline">
										                                    <label type="button" class="btn mod-btn-color">
										                                        <input type="radio" name="url_rewrite_enable" value="Y"<?php  if ($config['url_rewrite_enable'] == 'Y') { ?> checked="checked"<?php  } ?> /> 是
										                                    </label>
																		</div>
																		 <div class="checkbox i-checks checkbox-inline">
										                                    <label type="button" class="btn mod-btn-color">
										                                        <input type="radio" name="url_rewrite_enable" value="N"<?php  if ($config['url_rewrite_enable'] != 'Y') { ?> checked="checked"<?php  } ?> /> 否
										                                    </label>
																		</div>
										                                    <span class="help-block">Rewrite 开启方法请见 ReadMe 说明文件</span>
										                                </div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										            
										              
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">通知未读数刷新间隔时间:</span>
										                            <div class="col-sm-5 col-xs-8">
										                                <input name="unread_flush_interval" class="form-control" type="text" value="{$config.unread_flush_interval}"/>

										                                <div class="help-block">单位: 秒</div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">问题自动锁定时间:</span>
										                            <div class="col-sm-5 col-xs-8">
										                                <input name="auto_question_lock_day" class="form-control" type="text" value="{$config.auto_question_lock_day}"/>

										                                <div class="help-block">单位: 天, 问题超过设定天数没有动作,系统则会自动锁定该问题, 设置为 0 则关闭自动锁定</div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">网站统计代码:</span>
										                            <div class="col-sm-5 col-xs-8">
										                                <textarea class="form-control textarea" name="statistic_code" rows="9">{$config.statistic_code}</textarea>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">问题举报理由选项:</span>
										                            <div class="col-sm-5 col-xs-8">
										                                <textarea class="form-control textarea" name="report_reason" rows="5" >{$config.report_reason}</textarea>

										                                <div class="help-block">每行填写一个举报理由</div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">有新举报与认证申请私信提醒用户 ID:</span>
										                            <div class="col-sm-5 col-xs-8">
										                                <input name="report_message_uid" class="form-control" type="text" value="{$config.v}"/>

										                                <div class="help-block">留空则发送到 ID 为 1 的用户</div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">系统时间显示格式:</span>
										                            <div class="col-sm-6 col-xs-8">
										                             <div class="checkbox i-checks checkbox-inline">
										                                <label><input type="radio" name="time_style" value="Y"<?php  if ($config['time_style'] == 'Y') { ?> checked="checked"<?php  } ?> /> xx 分钟前形式</label>
										                                </div>
										                                 <div class="checkbox i-checks checkbox-inline">
										                                <label class="col-md-offset-1"><input type="radio" name="time_style" value="N"<?php  if ($config['time_style'] != 'Y') { ?> checked="checked"<?php  } ?> /> 完整日期形式</label>
										                                </div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">管理员后台登录是否需要验证码:</span>
										                            <div class="col-sm-6 col-xs-8">
										                                <div class="btn-group mod-btn">
										                                 <div class="checkbox i-checks checkbox-inline">
										                                    <label type="button" class="btn mod-btn-color">
										                                        <input type="radio" name="admin_login_seccode" value="Y"<?php  if ($config['admin_login_seccode'] == 'Y') { ?> checked="checked"<?php  } ?> /> 是
										                                    </label>
										                                    </div>
										                                     <div class="checkbox i-checks checkbox-inline">
														
										                                    <label type="button" class="btn mod-btn-color">
										                                        <input type="radio" name="admin_login_seccode" value="N"<?php  if ($config['admin_login_seccode'] != 'Y') { ?> checked="checked"<?php  } ?> /> 否
										                                    </label>
										                                    </div>
										                                </div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										                <tr>
										                    <td>
										                        <div class="form-group">
										                            <span class="col-sm-4 col-xs-3 control-label">发送诊断数据帮助改善产品:</span>
										                            <div class="col-sm-6 col-xs-8">
										                                <div class="btn-group mod-btn">
										                                 <div class="checkbox i-checks checkbox-inline">
										                                    <label type="button" class="btn mod-btn-color">
										                                        <input type="radio" name="report_diagnostics" value="Y"<?php  if ($config['report_diagnostics'] == 'Y') { ?> checked="checked"<?php  } ?> /> 是
										                                    </label>
										                                    </div>
																			 <div class="checkbox i-checks checkbox-inline">
										                                   		 <label type="button" class="btn mod-btn-color">
											                                        <input type="radio" name="report_diagnostics" value="N"<?php if ($config['report_diagnostics'] != 'Y') { ?> checked="checked"<?php  } ?> /> 否
											                                    </label>
										                                    </div>
										                                </div>
										                            </div>
										                        </div>
										                    </td>
										                </tr>
										            </table> 
			                    			</div>
			                            </div>
			                            
			                        </div>  
			                        <div style="clear:both;height:5px"></div> 
			                        <div class="hr-line-dashed"></div>
			                            <div class="form-group">
			                                <div class="col-sm-4 col-sm-offset-2">
			                                 <a href="javascript:;" class="btn btn-sm btn-primary pull-left m-t-n-xs cmzPost" style="margin-left:20px;,margin-top:20px;"><strong>提交配置</strong></a>
			                                </div>
			                            </div>
			                         
                    				 <div style="clear:both;height:5px"></div>    
			                </div>
                        </div>




                        


                    </div>


                </div>



             
            </div>
        
           
</div>
<div style="clear:both;"></div>
 <div>
  	 
  
	</div>


           
   </form>

{include file="admin/public/footer" /}